import 'package:finance_app/generated/json/base/json_convert_content.dart';

class PayslipsEntity with JsonConvert<PayslipsEntity> {
  num interval;

  List<PayslipsChartDataEntity> chartData;

  @override
  bool operator ==(Object other) =>
      identical(this, other) ||
      other is PayslipsEntity &&
          runtimeType == other.runtimeType &&
          interval == other.interval &&
          chartData == other.chartData;

  @override
  int get hashCode => interval.hashCode ^ chartData.hashCode;
}

class PayslipsChartDataEntity with JsonConvert<PayslipsChartDataEntity> {
  String name;
  num value;
}
